package com.oig.base.api.factory;

import com.oig.base.api.HarborAssociationService;
import com.oig.base.api.fallback.HarborAssociationServiceFallBackImpl;
import org.springframework.cloud.openfeign.FallbackFactory;

public class HarborAssociationServiceFallBackFactory implements FallbackFactory<HarborAssociationService> {

    @Override
    public HarborAssociationService create(Throwable cause) {
        HarborAssociationServiceFallBackImpl harborAssociationServiceFallBack = new HarborAssociationServiceFallBackImpl();
        harborAssociationServiceFallBack.setCause(cause);
        return harborAssociationServiceFallBack;
    }
}
